﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace GA.Server.ApiInfo
{
    public class ApiXmlNode
    {
        public static string GetValue(XmlReader reader)
        {
            XmlReader subtree = reader.ReadSubtree();
            while (!subtree.EOF)
            {
                subtree.Read();
                if (subtree.NodeType == XmlNodeType.Text)
                {
                    return subtree.Value;
                }
            }
            return null;
        }
    }
}
